function checkInfo(){
    var uid = document.getElementById("uid").value;
    //去除空格
    uid = uid.replace(/\s+/g,"");
    if(uid == ""){
        alert("用户名不能为空！");
        return false;
    }
    var phone = document.getElementById("phone").value;
    //去除空格
    phone = phone.replace(/\s+/g,"");
    if(phone == ""){
        alert("手机号不能为空！");
        return false;
    }
    //手机号正则表达式
    var reg = /^1[3456789]\d{9}$/;
    if(!reg.test(phone)){
        alert("手机号格式不正确！");
        return false;
    }

    var pwd = document.getElementById("upwd").value;
    //去除空格
    pwd = pwd.replace(/\s+/g,"");
    if(pwd == ""){
        alert("密码不能为空！");
        return false;
    }
    if(pwd.lenthg < 6){
        alert("密码长度不能小于6位！");
        return false;
    }
    var pwd2 = document.getElementById("rupwd").value;
    //去除空格
    pwd2 = pwd2.replace(/\s+/g,"");
    if(pwd2 == ""){
        alert("确认密码不能为空！");
        return false;
    }
    if(pwd != pwd2){
        alert("两次密码不一致！");
        return false;
    }
}